<?php /* Smarty version Smarty-3.1.18, created on 2017-06-02 14:57:35
         compiled from "/data/www/mystery/protected/modules/webadmin/views/question/set.tpl" */ ?>
<?php /*%%SmartyHeaderCode:180995762954bfaf356d37f8-64173672%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4e6054db869307dc9fcb116d031e75f2addd72c4' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/question/set.tpl',
      1 => 1494904924,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '180995762954bfaf356d37f8-64173672',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54bfaf3571b837_09933860',
  'variables' => 
  array (
    'questionId' => 0,
    'questionType' => 0,
    'key' => 0,
    'ls' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54bfaf3571b837_09933860')) {function content_54bfaf3571b837_09933860($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<table width="100%" border="0" cellspacing="0">
	<tr>
		<td width="13%" valign="top">
			<?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		</td>
        <td width="87%" valign="top"><table width="100%" border="0" cellspacing="0">
				<tr>
					<td><div class="subnav">
							<form name="form1">
								<div class="content-menu ib-a blue line-x"> <a href="/webadmin/question/set?tid=1" class="on"><em>问卷内容设置</em></a><span>|</span> 是否基本信息：
									<select>
										<option value="0">请选择</option>
										<option value="1">是</option>
										<option value="2">否</option>
									</select>
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="hidden" name="question_id" value="<?php echo $_smarty_tpl->tpl_vars['questionId']->value;?>
"/>
									题目类型：
									<select name="menu1">
										<option value="0" selected >--请选择--</option>
										<?php  $_smarty_tpl->tpl_vars['ls'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ls']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questionType']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ls']->key => $_smarty_tpl->tpl_vars['ls']->value) {
$_smarty_tpl->tpl_vars['ls']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['ls']->key;
?>
										<option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
">--<?php echo $_smarty_tpl->tpl_vars['ls']->value['title'];?>
--</option>
										<?php } ?>
									</select>
								</div>
							</form>
						</div>

						<?php echo $_smarty_tpl->getSubTemplate ("./set_common.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

					</td>
				</tr>
			</table></td>
	</tr>
</table>
<script type="text/JavaScript">
	$(document).ready(function(){
		$('select[name="menu1"]').change(function(){
			var _this = $(this),
				qid = $('input[name="question_id"]').val();
			window.location.href = '/webadmin/question/set?tid='+_this.val()+'&qid='+qid;
		});
	});
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
